﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frogism.Core.WorkOut;
namespace Frogism.Data {
  public class ActivityUserLoader {

    public Core.WorkOut.ActivityUser GetByUser(Core.User user) {
      ActivityUser aUser = new ActivityUser();
      aUser.Id = user.Id;
      aUser.Email = user.Email;
      aUser.Name = user.Name;


      aUser.Activities = (new ActivityLoader()).GetByUserId(aUser.Id);

      return aUser;

    }
  }
}
